package com.springcloud.zuul.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springcloud.zuul.common.utlis.JsonResult;
import com.springcloud.zuul.entity.SysProductEntity;

import java.util.Map;

/**
 * @program: springcloud-zuul
 * @description: 产品
 * @author: zhlu
 * @create: 2019-12-31 15:09
 * @Introduction(说明背景故事)
 **/
public interface SysProductService extends IService<SysProductEntity> {
    /**
     * Description:获取所有产品列表
     * @author zhlu
     * @date 2019/12/31 3:13 下午
     * @param
     * @return com.springcloud.zuul.common.utlis.JsonResult
     */
    IPage getProductList(Map<String,Object> params);

    /**
     * Description:保存产品
     * @author zhlu
     * @date 2019/12/31 5:44 下午
     * @param
     * @return com.springcloud.zuul.common.utlis.JsonResult
     */
    JsonResult saveProduct(SysProductEntity productEntity);

    /**
     * Description:根据产品编码获取产品信息
     * @author zhlu
     * @date 2020/1/6 10:18 上午
     * @param productId
     * @return com.springcloud.zuul.entity.SysProductEntity
     */
    SysProductEntity queryByProductId(String productId);

}
